package com.taxi.service;


import com.taxi.dto.OrderInfo;
import com.taxi.remote.ServiceOrderClient;
import com.taxi.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

@Service
public class OrderService {
    @Autowired
    private ServiceOrderClient serviceOrderClient;

    public Result getOrderList(int page, int limit, String address, String phone){
        return serviceOrderClient.getOrderList(page, limit, address, phone);
    }

    public Result updateOrder(OrderInfo orderInfo){
        return serviceOrderClient.updateOrder(orderInfo);
    }
}
